package com.zhouchaoqun.web.contition2;

import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;

/**
 * @author zhouchaoqun02
 * @date 2020-10-25 15:51
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type", defaultImpl = ConditionLeafNode.class)
@JsonSubTypes({
        @JsonSubTypes.Type(value=ConditionLeafNode.class, name = "leaf"),
        @JsonSubTypes.Type(value=ConditionSetNode.class, name = "tree")
})
public interface ConditionTreeNode {
}
